home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / acpi / suspend.d / 70-modules-unload.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2008-10-14  |  276b  |  13 lines

  1. #!/bin/sh
  2.  
  3. # Some modules survive better if they're left loaded
  4. for x in $MODULES_WHITELIST; do
  5.         MODULES=`echo $MODULES | sed s/$x//g`;
  6. done
  7.  
  8. # Now remove various modules that might misbehave while suspending
  9. for x in $MODULES; do
  10.     modprobe -r $x 2>/dev/null;
  11. done
  12.  
  13.